import 'package:fish_redux/fish_redux.dart';
import 'package:school_safe_teacher/constans/constants.dart';

import 'package:webview_flutter/webview_flutter.dart';

class BaseWebState implements Cloneable<BaseWebState> {
  String title = "";
  String url = "";
  WebViewController webViewController;
  @override
  BaseWebState clone() {
    return BaseWebState()
      ..title = title
      ..webViewController = webViewController
      ..url = url;
  }
}

BaseWebState initState(Map<String, dynamic> args) {
  String url = args[Constants.WEB_URL];
  return BaseWebState()
    ..title = ""
    ..url = url;
}
